﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Context
{
    public class EntityDispositionInformations
    {
        public short CellID { get; set; }
        public byte Direction { get; set; }

        public EntityDispositionInformations(short cellID, byte direction)
        {
            this.CellID = cellID;
            this.Direction = direction;
        }

        public void Serialize(NetworkMessage message)
        {
            message.WriterBuffer.writeShort(this.CellID);
            message.WriterBuffer.writeByte(this.Direction);
        }
    }
}
